package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.FindCommentReplyInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author xuanqicheng
 */
@Repository
public class FindCommentReplyInfoDao {

    @Autowired
    private SqlSession sqlSession;

    public FindCommentReplyInfo selectById(Long id) {
        return sqlSession.selectOne("selectFindCommentReplyInfo",id);
    }

    public int addFindCommentReplyInfo(FindCommentReplyInfo findCommentReplyInfo) {
       return sqlSession.insert("addFindCommentReplyInfo",findCommentReplyInfo);
    }
}
